package com.sak.vis.service;

import java.util.List;

import com.sak.vis.domain.Result;

/**
 * Service to optimize the {@link Result}s using some analyzers.
 * 
 * @author Saket Vishal
 * 
 */
public interface ResultOptimizationService {

	/**
	 * Sorts the results based upon scores.
	 * 
	 * @param queryText
	 *            The search string as provide by the user
	 * @param results
	 *            The aggregated results from all {@link ExternalClientService}s
	 * @return 
	 */
	List<Result> optimize(String queryText, List<Result> results);
}
